package com.cgq.pro.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.PermissionDao;
import com.cgq.pro.entity.Permission;
import com.cgq.pro.service.PermissionService;

@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements
		PermissionService {
	private PermissionDao permissionDao;

	@Autowired
	public void setPermissionDao(PermissionDao permissionDao) {
		this.permissionDao = permissionDao;
		this.baseDao=permissionDao;
	}

	public List<Permission> findAll() {
		return permissionDao.findAll();
	}
}
